<div id = 'OrdersPay' data-role="page" class="jqm-home">
<script type="text/javascript" src = 'http://res.wx.qq.com/open/js/jweixin-1.0.0.js'></script>
<script type="text/javascript">
$(function(){
wx.config(<?php echo $jsApiConfig?>);
wx.ready(function(){
});
wx.error(function(res){
   //console.log(res);
   alert(res.errMsg);
});
});
</script>
    
	<div data-role="header" class="ddlisthead">
    	<a href="/UserOrders_view_<?php echo $order['UserOrder']['id']?>.html" class = 'ui-btn-left ui-btn ui-icon-arrow-l ui-btn-icon-notext ui-btn-inline' data-role="button" data-icon="arrow-l">我的订单</a>
  		<h1>微信支付</h1>
    </div>
	<!-- /header -->
    
	<div data-role="content" class="ddlistcontent">
		<div class="orderdetail">
        	<div class="title">
            	<h3>订单信息</h3>
            </div>
            <div class="ppdetail">
            	<span class="ppdet-na1">订单编号</span>
                <span class="ppdet-inf s_4"><?php echo $order['UserOrder']['ordernum']?></span>
                <div class="clear"></div>
            </div>
            <div class="ppdetail ppdetail-pa">
            	<span class="ppdet-na1">应付金额</span>
                <span class="ppdet-inf s_4">¥<?php echo $order['UserOrder']['price_total']?></span>
                <div class="clear"></div>
            </div>
         </div>
           <?php echo $this->element('Wechat.wxpay')?>
	</div>

	<div data-role="footer" data-theme = 'a' data-position="fixed" data-fullscreen="ture" data-tap-toggle = "false">
        	<a href = 'javascript:go_to_pay_();'  id = 'go_to_pay' style = 'display: block;font-size: 1em;' class = 'ljgm ui-btn ticket_btn'>确认支付</a>
    </div>
	<!-- /footer -->

</div><!-- /page -->